package com.hotel.tv.application.admin.dto.order;

import com.autumn.util.HorizontalAlignment;
import com.autumn.util.excel.annotation.ExcelColumn;
import com.autumn.validation.annotation.MinBigDecimal;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-04-03 11:52
 **/
@Getter
@Setter
public class OrderListOutput extends OrderDtoBase {

    @NotNull(message = "订单金额不为空")
    @MinBigDecimal(value = 0.01, message = "订单金额太小")
    @ExcelColumn(order = 4, friendlyName = "订单金额", width = 90, alignment = HorizontalAlignment.RIGHT, isImportColumn = true, importNotNullable = true)
    private BigDecimal number;

    @ExcelColumn(order = 5, friendlyName = " 用户", width = 80)
    private Long userId;

    @ExcelColumn(order = 2, friendlyName = "订单时间", width = 160)
    private Date orderTime;

    private String userName;

    private String realName;

    private String nickName;

}
